<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AddColumnShopAreaToCruiseShopAccountTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('cruise_shop_account', function (Blueprint $table) {
            $table->string('area', 36)->after('updatedAt')->default('')->comment('省市区');
            $table->unsignedInteger('preOpenTime')->default(0)->comment('预计开业时间');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('cruise_shop_account', function (Blueprint $table) {
            $table->dropColumn('area');
            $table->dropColumn('preOpenTime');
        });
    }
}
